package com.qnnu.studenttravelsystem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhongge
 * @since 2025-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("travel_record")
public class TravelRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long studentId;

    private Long holidayPublishId;

    /**
     * 0-留校 1-离校
     */
    private Integer travelType;

    private String province;

    private String city;

    private String county;

    private String addressDetail;

    private LocalDateTime leaveTime;

    private LocalDateTime returnTime;

    private String emergencyContact;

    private String emergencyPhone;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;


}
